package oo.day06;


public class OutClass {

    private static String name = "dbx";
    private String name1 = "dqh";
    public int a = 10;
    public class Inner {

        void fun() {
            System.out.println(name);
            System.out.println(a);
            System.out.println(OutClass.this.name1);
        }
    }

    public static void main(String[] args) {
         OutClass outClass= new OutClass();

         OutClass.Inner in = outClass.new Inner();
         OutClass.Inner  in1 = new OutClass().new Inner();
         in.fun();

//        OutClass.Inner inner = new OutClass.Inner();
//       OutClass.Inner inner = new Inner();一旦内部类使用static修饰，那么此时这个内部类就升级为顶级类。
//        inner.fun();
    }

}


